import request from '@/utils/request'
import { ResultCompanyInfoVo, DeepRequired } from '../../interface'

/**
 * 根据ID获取公司详细信息
 * /company/info/{id}
 */
export function getCompanyInfoById(params: GetCompanyInfoByIdParams) {
  return request.get<DeepRequired<ResultCompanyInfoVo>>(
    `/company/info/${params.id}`,
  )
}

interface GetCompanyInfoByIdParams {
  id: number
}
